#include "Warp.h"


Warp::Warp(float x, float y , int DESTINATION, float TarX, float TarZ , Player* player, world* World, LPDIRECT3DDEVICE9 device ): InteractableObject(device,x,y,0) 
{
	DESTINATION_ = DESTINATION;
	TargetX = TarX;
	TargetZ = TarZ;
	World_ = World;
	player_= player;
}


Warp::~Warp(void)
{ 
}

void Warp::Interact()
{
	World_ ->loadMap(DESTINATION_);
	player_ ->x = TargetX;
	player_ ->z = TargetZ;
}